﻿
using Inaction.Database.Schema;
using Inaction.Rule;

namespace Inaction.Database
{
    public static class DbSchemaProvider
    {
        #region
        public static SchemaProviderBase GetSchemaProvider(SqlType sqlType, string connectionString)
        {
            switch (sqlType)
            {
                case SqlType.Oracle:
                    return new OracleSchemaProvider(connectionString);
                case SqlType.SqlServer:
                    return new SqlServerSchemaProvider(connectionString);
                default:
                    return null;
            }
        }
        #endregion
    }
}
